package com.ipay.wechat.service;

import java.util.List;

import org.springframework.web.bind.annotation.RequestParam;

import com.ipay.wechat.pojo.Cashiers;

public interface CashiersService {

	Cashiers findCashierByMobile(String mobile,int activateState);

	void insertCashier(String name, String mobile, int status, String merchantId,
			int authority, int role,String inviteCode);

	List<Cashiers> findCashierList(String merchant_id, Long mId);
	
	Cashiers findCashierByMobileAndState(String mobilephone, int activateState);

	Cashiers findCashierByOpenid(String openid, int activateState);

	List<Cashiers> findCashierByMerchantId(String merchantId);

	void updateCashier(String mobile, String merchant_no, int status);
	
	int delCashier(String mobile,String merchantId);

	int modifyCashier(String name,String mobilephone);

	void update(Cashiers cashiers);
	
	int updateCashierState(String activateState ,String mobile);
	
	int updateCashierByMobile(String activateState ,String mobile);
	
	boolean updateIsNotify(Long id ,int isNotify);
	
	Cashiers findCashierById(Long id);
	
	List<Cashiers> findListByMerchantId(String merchantId);
}
